package cn.itsource.org.mapper;

import cn.itsource.basic.basicMapper.BasicMapper;
import cn.itsource.basic.util.AjaxResult;
import cn.itsource.basic.util.PageList;
import cn.itsource.org.Dto.rejectShopDto;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.domain.Shop;
import cn.itsource.org.query.EmployeeQuery;
import cn.itsource.org.query.ShopQuery;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ShopMapper extends BasicMapper<Shop> {

    //基础的crud全部由继承得到
    void insertShop(Shop shop);
    void update(Shop shop);
    List<Shop> findPageList(ShopQuery query);
    @Select("select * from t_shop t left join t_employee e on t.admin_id = e.id")
   List<Shop> findAll(ShopQuery query);
//    驳回
  void reject(rejectShopDto dto);

}
